package com.project.service.impl;

import com.project.bean.EventBean;
import com.project.mapper.IEventMapper;
import com.project.service.IEventService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Author(王思翰)
 * @Description(类的描述)学校活动业务实现类
 * @Date(创建时间) 2021/7/13 17:58
 */
@Service
@Transactional
public class EventServiceImpl implements IEventService {
    @Autowired
    private IEventMapper mapper;

    @Override
    public List<EventBean> findBySchoolId(int id) {
        return mapper.findBySchoolId(id);
    }

    @Override
    public void addEvent(EventBean eventBean) {
        mapper.addEvent(eventBean);
    }
}
